Suspect links and clearing them using DXL

Hello,

question when using the built in feature of clearing suspect links(In) is DOORS opening the parent module to remove the suspicions, beause from testing the following code I need to have the parent module open(exclusive edit) to clear the links. Is my logic correct or am I over looking something?
 

void ClearOutgoingSuspicions(Object obj)
{
    Link lnk
        const string linkModName = "*"
    for lnk in all(obj->linkModName) do {
                if (name(module(lnk)) != "child2parent" && name(module(lnk)) != "parent2child") continue
                lnk."Suspicion Cleared Forwards" = dateAndTime(today()) }
}
 
void ClearIncomingSuspicions(Object obj)
{
        Link lnk
        const string linkModName = "*"
    for lnk in all(obj<-linkModName) do {
                if (name(module(lnk)) != "child2parent" && name(module(lnk)) != "parent2child") continue
                lnk."Suspicion Cleared Backwards" = dateAndTime(today()) }
}

SystemAdmin - Wed Jun 13 09:24:48 EDT 2012

Re: Suspect links and clearing them using DXL
llandale - Wed Jun 13 16:30:06 EDT 2012

Yes you should need the source module of the link open; either Exclusive of Shared and the object locked.

Most folks link from Child to Parent since the Parent object exists first and the child owner controls her objects, and which parents it satisfies. Linking down makes sense if the parent owner is deciding the text of the sub spec when they allocate.

-Louie